// wx.request()请求封装
function Data_req(req_option) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: req_option.url,
      data: req_option.data || {},
      method: req_option.method || 'get',
      success: resolve,
      fail: reject
    })
  })
}

//导出方法
module.exports = {
  Data_req
}